package com.piggy.logi.sys.api.vo;

import com.google.common.collect.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

/**
 * 价格方案管理视图对象 logi_price_plan
 *
 * @author piggy
 * @date 2023-08-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ApiModel("价格方案管理视图对象")
public class LogiPricePlanExtVo extends LogiPricePlanVo implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty("分段价格列表")
	private List<LogiPriceSegExtVo> segList = Lists.newArrayList();

	@ApiModelProperty("线路列表")
	private List<LogiLineExtVo> lineList = Lists.newArrayList();

	@ApiModelProperty("地区名称")
	private String districtName;

	@ApiModelProperty("区域线路统计")
	private List<DistLineVo> distLineList = Lists.newArrayList();

	@ApiModel("线路详情区域显示信息")
	@Accessors(chain = true)
	@Data
	public static class DistLineVo implements Serializable {
		private static final long serialVersionUID = 1L;

		@ApiModelProperty("区域ID")
		private String distId;
		@ApiModelProperty("区域ID")
		private String distName;
		@ApiModelProperty("线路数量")
		private Integer lineNum;
	}
}
